package com.irishud.hud;

import android.content.Context;
import android.view.Gravity;
import android.widget.Toast;

import com.irishud.hudnavi.BuildConfig;


/**
 * Created by Administrator on 2016/7/28.
 */
public class ToastUtil {
    public static Toast makeText(Context c, String what, int duration)
    {
        Toast toast = Toast.makeText(c, what,duration);
        if(BuildConfig.PRODUCT.equals("s1"))
        {
            toast.setGravity(Gravity.CENTER, 0, 0);
        }
        return toast;
    }
}
